package org.xc.xg;

import android.content.Context;
import android.util.Log;

import com.tencent.android.tpush.XGPushBaseReceiver;
import com.tencent.android.tpush.XGPushClickedResult;
import com.tencent.android.tpush.XGPushRegisterResult;
import com.tencent.android.tpush.XGPushShowedResult;
import com.tencent.android.tpush.XGPushTextMessage;

/**
 * Created by Administrator on 2018/9/21.
 */

public class XGReceiver extends XGPushBaseReceiver {

    //注册回调
    @Override
    public void onRegisterResult(Context context, int i, XGPushRegisterResult xgPushRegisterResult) {
        Log.e("XGReceiver","onRegisterResult-->" + xgPushRegisterResult.toString());
    }

    //取消注册回调
    @Override
    public void onUnregisterResult(Context context, int i) {
        Log.e("XGReceiver","onUnregisterResult-->" + i);
    }

    //设置TAG回调
    @Override
    public void onSetTagResult(Context context, int i, String s) {
        Log.e("XGReceiver","onSetTagResult-->" + s);
    }

    //删除TAG回调
    @Override
    public void onDeleteTagResult(Context context, int i, String s) {
        Log.e("XGReceiver","onDeleteTagResult-->" + s);
    }

    //收到透传消息
    @Override
    public void onTextMessage(Context context, XGPushTextMessage xgPushTextMessage) {
        Log.e("XGReceiver","onTextMessage-->" + xgPushTextMessage.toString());
    }

    //通知栏被点击回调
    @Override
    public void onNotifactionClickedResult(Context context, XGPushClickedResult xgPushClickedResult) {
        Log.e("XGReceiver","onNotifactionClickedResult-->" + xgPushClickedResult.toString());
    }

    //收到通知消息
    @Override
    public void onNotifactionShowedResult(Context context, XGPushShowedResult xgPushShowedResult) {
        Log.e("XGReceiver","onNotifactionShowedResult-->" + xgPushShowedResult.toString());
    }
}
